﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.DomainObjects;

namespace DomainDriver.DomainModeling.Events
{
    public class UpdateDomainObjectEventArgs<KEY, KEYED_DOMAIN_OBJECT> : EventArgs
        where KEYED_DOMAIN_OBJECT : IKeyedDomainObject<KEY, KEYED_DOMAIN_OBJECT>
    {
        private KEYED_DOMAIN_OBJECT m_OriginalObject;
        private KEYED_DOMAIN_OBJECT m_UpdatedObject;

        public UpdateDomainObjectEventArgs(KEYED_DOMAIN_OBJECT originalObject, KEYED_DOMAIN_OBJECT updatedObject)
            : base()
        {
            m_OriginalObject = originalObject;
            m_UpdatedObject = updatedObject;
        }

        public KEYED_DOMAIN_OBJECT OriginalObject
        {
            get { return m_OriginalObject; }
        }

        public KEYED_DOMAIN_OBJECT UpdatedObject
        {
            get { return m_UpdatedObject; }
        }
    }
}